package co.edu.uniandes.distribuidos.fss.adv;

import net.jxta.document.Advertisement;
import net.jxta.document.Element;
import net.jxta.document.AdvertisementFactory.Instantiator;

public class FileInstantiador implements Instantiator {

	@Override
	public String getAdvertisementType() {
		return FileAdvertisement.getAdvertisementType();
	}

	@Override
	public Advertisement newInstance() {
		return new FileAdvertisement();
	}

	@SuppressWarnings("unchecked")
	@Override
	public Advertisement newInstance(Element element) {
		return new FileAdvertisement(element);
	}

}
